//TcpClient.cpp


#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
//#include <winsock2.h>
#pragma comment(lib,"ws2_32.lib")

#include "cJSON.h"
#include "resource.h"

HWND rootDlg;
SOCKET sockClient;

char set_chat_name[50];

BOOL CALLBACK DlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK DlgProc1(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
int Cls_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);

void setName(HWND hwnd);
void sendMsg(HWND hwnd);
DWORD WINAPI ReceiveMessageThread(LPVOID IpParameter);